package com.example.api.mapper;

import com.example.api.pojo.Category;
import com.example.api.pojo.User;
import com.example.api.query.CategoryQuery;
import com.example.api.query.UserQuery;
import com.example.api.vo.CategoryDetailVO;
import com.example.api.vo.CategoryVO;
import com.example.api.vo.UserVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<CategoryVO> find(CategoryQuery categoryQuery);

    void add(Category category);

    void update(Category category);

    @Delete("delete from t_category where id = #{id}")
    void deleteById(long id);

    List<CategoryDetailVO> findCategoryAndFood();
}
